package com.shenma2009.controller;

import com.shenma2009.domain.ResultResponse;
import com.shenma2009.service.TbProductTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TbProductTypeController
 * @date 2023/4/21 16:38
 */

@RestController
@Slf4j
@RequestMapping(value = "/type")
public class TbProductTypeController {

    @Autowired
    TbProductTypeService tbProductTypeService;

    @PostMapping(value = "/getTree")
    public ResultResponse getTree() {
        return tbProductTypeService.getTree();
    }

}
